﻿using AutoMapper;
using StarsAdmin.Application.Api.Dtos;
using StarsAdmin.Core.DB.Entities;
using StarsAdmin.Core.Models;

namespace StarsAdmin.Application.Api.Mappings
{
    public class ApiAutoMapperProFile : Profile
    {
        public ApiAutoMapperProFile()
        {
            CreateMap<Page<ApiEntity>, Page<ApiDto>>();
            CreateMap<AddApiInput, ApiEntity>();
            CreateMap<UpdateApiInput, ApiEntity>();
            CreateMap<ApiEntity, ApiDto>();
        }
    }
}